#include"client.h"

void treeCommand(client_task_t * task){
    //接受server端发送的数据
    while(1){
        int len = 0;
        char buff[1024] = {0};
        //先接受长度信息
        recvn(task->peerfd,&len,4);
        if(len == 0){
            break;
        }
        recvn(task->peerfd,buff,len);
        puts(buff);
    }
}
